/**
 * 
 */
package hottargui.config;

import hottargui.framework.GameData;
import hottargui.framework.PlayerColor;
import hottargui.framework.Tile;
import hottargui.framework.TileType;

public class DeltaTestBoardStrategy extends DeltaBoardStrategy {
	protected GameData gameData;

	protected Tile getFreeTile(TileType tileType) {
		for (Tile freeTile : gameData.getBoardConfiguration())
			if (freeTile.getType() == tileType && freeTile.getOwnerColor() == PlayerColor.None) {
				return freeTile;
			}
		return null;
	}

	@Override
	public void setupBoard(GameData gameData) {
		this.gameData = gameData;
		super.setupBoard(this.gameData);
	}

}
